/**
    AriTest：用于输出一个数每个位上的数值
 */
public class AriTest {
    public static void main(String[] args) {
        int m1 = 3456;
        int ge, shi, bai, qian;
        ge = m1 % 10;
        shi = (m1 - ge) /10 % 10;
        bai = (m1 - ge - shi) /100 % 10;
        qian = (m1 - ge - shi  - bai) /1000 % 10;

        System.out.println("个位：" + ge);
        System.out.println("十位：" + shi);
        System.out.println("百位：" + bai);
        System.out.println("千位：" + qian);
    }
}
